/*******************************************************************************
 * Copyright (C) 2010 4Point Solutions Ltd. www.4point.com
 * 
 * Portions based on PushButton Engine, 
 * (C) 2009 PushButton Labs, LLC www.pushbuttonengine.com
 * 
 * This file is licensed under the terms of the MIT license, which is included
 * in the license.txt file at the root of this project.
 ******************************************************************************/
package com.fourpointsolutions.flex.utils.logging
{
	public class LogColor
	{
		public static const DEBUG:String 	= "#DDDDDD";
		public static const INFO:String 	= "#22FF22";
		public static const WARN:String 	= "#FF6600";
		public static const ERROR:String 	= "#FF0000";
		public static const MESSAGE:String 	= "#FFFFFF";
		public static const CMD:String 		= "#FF33DD";
        
		public static function getColor(level:String):String
		{
			switch(level)
			{
				case LogEntry.DEBUG:
					return DEBUG;
				case LogEntry.INFO:
					return INFO;
				case LogEntry.WARNING:
					return WARN;
				case LogEntry.ERROR:
					return ERROR;
				case LogEntry.MESSAGE:
					return MESSAGE;
				case LogEntry.CMD:
					return CMD;
				default:
					return MESSAGE;
			}
		}
	}
}